import React, { lazy } from 'react';

import Home from './Home';

const routes = [
  {
    path: '/edit',
    component: lazy(() => import('../pages/Edit')),
  },
  {
    path: '/editcustom',
    component: lazy(() => import('../pages/EditCustom')),
  },
  {
    path: '/view',
    component: lazy(() => import('../pages/View')),
  },
  {
    path: '/richeditor',
    component: lazy(() => import('../pages/Editor')),
  },
  {
    path: '*',
    component: Home,
  },
];

// if (__dev__) {
//   routes.unshift({
//     path: '/login',
//     component: lazy(() => import('../components/ProxyLogin')),
//   });
// }

export default routes;
